/**
 * ======================================
 * 系统管理配置管理
 * author: SKY-D
 * file: user-class.js
 * date: 2022/6/15 22:44
 * ======================================
 */
import baseClass from '@/list/baseClass'
import _ from 'lodash'
export default class userClass extends baseClass {
  constructor(prop) {
    super(prop)
    this.index = _.get(prop, 'index', '')
    this.creator = _.get(prop, 'creator', '')
    this.name = _.get(prop, 'name', '')
    this.title = _.get(prop, 'title', '')
    this.config = _.get(prop, 'config', '')
    this.remark = _.get(prop, 'remark', '')
  }
  list() {
    return [
      {
        name: '创建人',
        key: 'creator',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '名称',
        key: 'name',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '标题',
        key: 'title',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '配置',
        key: 'config',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '备注',
        key: 'remark',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '操作',
        key: 'action',
        fixed: 'right',
        edit: false,
        show: true,
        value: 290
      }
    ]
  }
}
